home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / rdf / nsIRDFPurgeableDataSource.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  4KB  |  110 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIRDFPurgeableDataSource.idl
  3.  */
  4.  
  5. #ifndef __gen_nsIRDFPurgeableDataSource_h__
  6. #define __gen_nsIRDFPurgeableDataSource_h__
  7.  
  8.  
  9. #ifndef __gen_nsISupports_h__
  10. #include "nsISupports.h"
  11. #endif
  12.  
  13. #ifndef __gen_nsIRDFResource_h__
  14. #include "nsIRDFResource.h"
  15. #endif
  16.  
  17. #ifndef __gen_nsIRDFNode_h__
  18. #include "nsIRDFNode.h"
  19. #endif
  20.  
  21. /* For IDL files that don't want to include root IDL files. */
  22. #ifndef NS_NO_VTABLE
  23. #define NS_NO_VTABLE
  24. #endif
  25.  
  26. /* starting interface:    nsIRDFPurgeableDataSource */
  27. #define NS_IRDFPURGEABLEDATASOURCE_IID_STR "951700f0-fed0-11d2-bdd9-00104bde6048"
  28.  
  29. #define NS_IRDFPURGEABLEDATASOURCE_IID \
  30.   {0x951700f0, 0xfed0, 0x11d2, \
  31.     { 0xbd, 0xd9, 0x00, 0x10, 0x4b, 0xde, 0x60, 0x48 }}
  32.  
  33. class NS_NO_VTABLE nsIRDFPurgeableDataSource : public nsISupports {
  34.  public: 
  35.  
  36.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_IRDFPURGEABLEDATASOURCE_IID)
  37.  
  38.   /* boolean Mark (in nsIRDFResource aSource, in nsIRDFResource aProperty, in nsIRDFNode aTarget, in boolean aTruthValue); */
  39.   NS_IMETHOD Mark(nsIRDFResource *aSource, nsIRDFResource *aProperty, nsIRDFNode *aTarget, PRBool aTruthValue, PRBool *_retval) = 0;
  40.  
  41.   /* void Sweep (); */
  42.   NS_IMETHOD Sweep(void) = 0;
  43.  
  44. };
  45.  
  46. /* Use this macro when declaring classes that implement this interface. */
  47. #define NS_DECL_NSIRDFPURGEABLEDATASOURCE \
  48.   NS_IMETHOD Mark(nsIRDFResource *aSource, nsIRDFResource *aProperty, nsIRDFNode *aTarget, PRBool aTruthValue, PRBool *_retval); \
  49.   NS_IMETHOD Sweep(void); 
  50.  
  51. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  52. #define NS_FORWARD_NSIRDFPURGEABLEDATASOURCE(_to) \
  53.   NS_IMETHOD Mark(nsIRDFResource *aSource, nsIRDFResource *aProperty, nsIRDFNode *aTarget, PRBool aTruthValue, PRBool *_retval) { return _to Mark(aSource, aProperty, aTarget, aTruthValue, _retval); } \
  54.   NS_IMETHOD Sweep(void) { return _to Sweep(); } 
  55.  
  56. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  57. #define NS_FORWARD_SAFE_NSIRDFPURGEABLEDATASOURCE(_to) \
  58.   NS_IMETHOD Mark(nsIRDFResource *aSource, nsIRDFResource *aProperty, nsIRDFNode *aTarget, PRBool aTruthValue, PRBool *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->Mark(aSource, aProperty, aTarget, aTruthValue, _retval); } \
  59.   NS_IMETHOD Sweep(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->Sweep(); } 
  60.  
  61. #if 0
  62. /* Use the code below as a template for the implementation class for this interface. */
  63.  
  64. /* Header file */
  65. class nsRDFPurgeableDataSource : public nsIRDFPurgeableDataSource
  66. {
  67. public:
  68.   NS_DECL_ISUPPORTS
  69.   NS_DECL_NSIRDFPURGEABLEDATASOURCE
  70.  
  71.   nsRDFPurgeableDataSource();
  72.  
  73. private:
  74.   ~nsRDFPurgeableDataSource();
  75.  
  76. protected:
  77.   /* additional members */
  78. };
  79.  
  80. /* Implementation file */
  81. NS_IMPL_ISUPPORTS1(nsRDFPurgeableDataSource, nsIRDFPurgeableDataSource)
  82.  
  83. nsRDFPurgeableDataSource::nsRDFPurgeableDataSource()
  84. {
  85.   /* member initializers and constructor code */
  86. }
  87.  
  88. nsRDFPurgeableDataSource::~nsRDFPurgeableDataSource()
  89. {
  90.   /* destructor code */
  91. }
  92.  
  93. /* boolean Mark (in nsIRDFResource aSource, in nsIRDFResource aProperty, in nsIRDFNode aTarget, in boolean aTruthValue); */
  94. NS_IMETHODIMP nsRDFPurgeableDataSource::Mark(nsIRDFResource *aSource, nsIRDFResource *aProperty, nsIRDFNode *aTarget, PRBool aTruthValue, PRBool *_retval)
  95. {
  96.     return NS_ERROR_NOT_IMPLEMENTED;
  97. }
  98.  
  99. /* void Sweep (); */
  100. NS_IMETHODIMP nsRDFPurgeableDataSource::Sweep()
  101. {
  102.     return NS_ERROR_NOT_IMPLEMENTED;
  103. }
  104.  
  105. /* End of implementation class template. */
  106. #endif
  107.  
  108.  
  109. #endif /* __gen_nsIRDFPurgeableDataSource_h__ */
  110.